<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
    <title>报表管理</title>
    <meta name="decorator" content="form"/>
    <html:css name="bootstrap-fileinput" />
    <html:css name="simditor" />
</head>

<body class="white-bg"  formid="reportForm">
    <form:form id="reportForm" modelAttribute="data" action="${adminPath}/sys/report/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<table  class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>报表编号:</label>
		            </td>
					<td class="width-35">
						<form:input path="number" htmlEscape="false" class="form-control" nullmsg="请填写报表编号"
							datatype="*" ajaxurl="${adminPath}/sys/report/validate"    />
						<label class="Validform_checktip"></label>
					</td>
					<td  class="width-15 active text-right">	
		              <label>报表名称:</label>
		            </td>
					<td class="width-35">
						<form:input path="name" htmlEscape="false" class="form-control" nullmsg="请填写报表名称"  datatype="*"   />
						<label class="Validform_checktip"></label>
					</td>
				</tr>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>文件名:</label>
		            </td>
					<td class="width-35">
						<form:input path="fileName" htmlEscape="false" class="form-control"  nullmsg="请填写文件名称"  
							datatype="*" placeholder="请填写需要调用的报表文件名"  />
						<label class="Validform_checktip"></label>
					</td>
					<td  class="width-15 active text-right">	
		              <label>扩展名:</label>
		            </td>
					<td class="width-35">
						<form:select path="ext" htmlEscape="false" class="form-control" 
							dict="reportExt" nullmsg="请选择扩展名"  datatype="*"    />
						<label class="Validform_checktip"></label>
					</td>
				</tr>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>模块名称:</label>
		            </td>
					<td class="width-35">
						<form:input path="module" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
					<td  class="width-15 active text-right">	
		              <label>所属菜单:</label>
		            </td>
		            <td>
		            	<form:treeselect path="menuId" htmlEscape="false" class="form-control" datatype="*"  nullmsg="请选择所属模块" callback="setMenuName"
							dataUrl="${adminPath}/sys/menu/menuTreeData?isshow=1" labelName="menuName" labelValue="${data.menuName}" title="选择菜单"  />
						<label class="Validform_checktip"></label>
		            </td>
				</tr>
				<tr>
					<td  class="width-15 active text-right">	
		              <label>备注信息:</label>
		            </td>
					<td class="width-35" colspan="3">
						<form:textarea path="remarks" htmlEscape="false" class="form-control"      />
						<label class="Validform_checktip"></label>
					</td>
				</tr>
		      	<tr>
					<td  class="width-15 active text-right">	
		              <label>文件:</label>
		            </td>
					<td class="width-35" colspan="3">
						<input id="relateTable" type="hidden" value="skill_main"/>
						<input id="relateFeild" type="hidden" value="filePath"/>						
						<%-- <form:fileinput fileInputWidth="30%" path="remarks" buttonText="选择文件"/> --%>
						<form:fileinput buttonText="选择文件" saveType="billId" extend="jrxml,jasper" fileActionSettings="{showRemove: true,showUpload: false}" isFormSubmit="true" uploadExtraFieldData="relateTable,relateFeild"
						showUpload="false" showRemove="false" autoUpload="false" fileInputWidth="100px"  fileInputHeight="100px"  path="filePath" htmlEscape="false" class="form-control"   
						uploadUrl="${adminPath}/sys/report/upload"   />
					</td>
				</tr>
		   </tbody>
		</table>   
	</form:form>
<html:js name="bootstrap-fileinput" />
<html:js name="simditor" />
</body>
<!-- 全局js -->
<html:js name="iCheck,Validform,markdown,syntaxhighlighter" />
<!-- 自定义js -->
<script src="${staticPath}/common/js/content.js?v=1.0.0"></script>
</html>